package com.dq.Week1.day02;
//导包
import java.util.Scanner;

public class reviewDemo {
    public static void main(String[] args) {
        String review = "";
        //创建对象
        Scanner scanner = new Scanner(System.in);
        while (true)
        {
            System.out.println("请输入评价：(abcde或ABCDE)");
            //接收数据
            review = (scanner.next()).toUpperCase();

            switch (review)
            {

                case "A":
                    System.out.println("好评");
                    break;
                case "B":
                    System.out.println("一般");
                    break;
                case "C":
                    System.out.println("及格");
                    break;
                case "D":
                    System.out.println("较差");
                    break;
                case "E":
                    System.out.println("很差");
                    break;
                default:
                    System.out.println("评价的不对");

            }
        }
    }
}
